{include file="index/head" /}
	<div class="box">
		<div class="box-head">
			<h2>订单详情</h2>
			<a href="javascript:history.go(-1);" class="btn fr"><i class="icon-refresh"></i> 返回上一页</a>
		</div>
		<style>
			.table tr th{ text-align: right; width: 200;}
			.table tr td{ text-align: left;}
		</style>
		<table class="table">
			<tr>
				<th colspan="6" style="text-align: center;"><b>订单信息</b></th>
			</tr>
			<tr>
				<th>订单ID</th>
				<td>{$v.id}</td>
				<th>订单编号</th>
				<td>{$v.orderno}</td>
				<th>创建时间</th>
				<td>{$v.datetime}</td>
			</tr>
			<tr>
				<th>订单状态</th>
				<td>{$v.status|_orderStatus}</td>
				<th>支付状态</th>
				<td>{$v.paystate|_orderPaystate}  {if condition="$v.paystate == 1 && $v.status == 2"}<a href="javascript:void(0);" onclick="sycms.confirm('{:url('refund',['orderno'=>$v.orderno,'id'=>$v.id])}','确定要退款吗？')" class="btn">退款</a>{/if}</td>		
				<th>支付金额</th>
				<td>{$v.paymoney}</td>
			</tr>
			<tr>				
				<th>支付时间</th>
				<td>{$v.paytime}</td>				
				<th>退款时间</th>
				<td>{$v.refundtime}</td>	
				<th>优惠金额</th>
				<td>{$v.couponmoney}</td>		
			</tr>			
			<tr>
				<th colspan="6" style="text-align: center;"><b>产品信息</b></th>
			</tr>
			<tr>
				<th>产品名称</th>
				<td>{$v.title}</td>
				<th>产品价格</th>
				<td>{$v.price}</td>
				<th>产品图片</th>
				<td><a href="{$v.productimg}" class="imgview"><img src="{$v.productimg}" style="background:#eee;" alt="" width="120" height="80" /></a></td>
			</tr>				
			<tr>
				<th colspan="6" style="text-align: center;"><b>客户信息</b></th>
			</tr>
			<tr>
				<th>客户呢称</th>
				<td>{$v.name}</td>
				<th>客户手机</th>
				<td>{$v.mobile}</td>
				<th>会员ID</th>
				<td>{$v.memid}</td>
			</tr>	
			<tr>
				<tr>
					<th>快递方式</th>
					<td>邮寄</td>		
					<th>收货地址</th>
					<td>{$v.shaddress}</td>
				 <th>客户电话</th>
				 <td>{$v.tel}</td>
			</tr>
		</table>
	</div>

<script>
	 function openuppz(){
				layer.open({
							type:2,
							title:'上传税务凭证',
							content:"{:url('uppz')}?orderno={$v.orderno}&id={$v.id}",
							area:['1000px','700px']
				})
		}	
</script>
